import React from 'react';
import { createRoot } from 'react-dom/client';
import { beanManager } from './beans';
import { TodoList } from './components/TodoList';
import { BeanManagerContext } from './contexts/BeanManagerContext';

// 初始化Bean管理器
beanManager.init();

const App = () => {
  return (
    <BeanManagerContext.Provider value={beanManager}>
      <TodoList />
    </BeanManagerContext.Provider>
  );
};

// const root = createRoot(document.getElementById('root')!);
// root.render(<App />);


export default App